package com.pureut.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.quality.domain.QualityInspectionManagement;
import com.pureut.quality.domain.dto.QualityInspectionManagementDto;
import com.pureut.quality.domain.vo.InspectionMarkVo;
import com.pureut.quality.domain.vo.QualityInspectionManagementVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 * 免检管理mapper
 * Author:C
 * Date:2023/02/03 13:55
 * @DESC
 */
@Mapper
public interface QualityInspectionManagementMapper extends BaseMapper<QualityInspectionManagement> {

    /**
     * 获取免检管理列表
     */
    List<QualityInspectionManagementDto> getManagementList(QualityInspectionManagementVo qualityInspectionManagementVo);

    /**
     * 根据id获取详情
     */
    QualityInspectionManagementDto getViewById(long id);

    /**
     * 通过供应商和物料编码查询
     */
    List<QualityInspectionManagementDto> getDataBySupplier(InspectionMarkVo inspectionMarkVo);

    /**
     * 通过加工商和物料编码查询
     */
    List<QualityInspectionManagementDto> getDataByConverter(InspectionMarkVo inspectionMarkVo);
}
